package com.tiance.demo.ui;

import com.tiance.demo.ui.menu.MyMeunBar;
import com.tiance.demo.ui.page.ByteContentPane;
import com.tiance.demo.ui.page.PagePane;
import com.tiance.demo.ui.property.PagePropertyPane;
import com.tiance.demo.ui.status.BottomBar;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.VBox;

public class MainPane extends BorderPane {


    public MainPane() {

        //上
        MyMeunBar meunBar = new MyMeunBar();
        setTop(meunBar);

        //左
        PagePane pagePane = new PagePane();
        setLeft(pagePane);

        //右
        PagePropertyPane pagePropertyPane = new PagePropertyPane();
        setRight(pagePropertyPane);

        //下
        BottomBar bottomBar = new BottomBar();
        setBottom(bottomBar);

        VBox body = new VBox();
        body.getChildren().add(new ByteContentPane());
        setCenter(body);
    }
}
